// 定义网站 HTML 元素的样式
:root {
	font-family: @font-family;
	font-size: 12px;
	line-height: 1.5em;
}
html,
body {
	width: 100vw;
	height: 100vh;
	// 滚动条样式
	::-webkit-scrollbar {
		background: transparent;
		width: 4px;
		height: 4px;
	}

	::-webkit-scrollbar-thumb {
		border-radius: 0;
		box-shadow: none;
		border: 0;
	}

	::-webkit-scrollbar-track {
		border-radius: 0;
		box-shadow: none;
		border: 0;
	}
	div {
		scrollbar-width: thin; /* 滚动条宽度有三种：thin、auto、none */
	}
	.icon {
		width: 1em;
		height: 1em;
		vertical-align: -0.15em;
		fill: currentColor;
		overflow: hidden;
	}
}
.loading-mask,
.loading-mask .loading-mask__blur {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
}
.loading-mask {
	text-align: center;
	vertical-align: middle;
	.loading-mask__spin-container {
		position: absolute;
		display: inline-block;
		top: 50%;
		left: 50%;
		margin: -10px;
		width: 40px;
		height: 40px;
		opacity: 1;
		z-index: 5;
		transform: rotate(45deg);
		-webkit-animation: spinRotate 2.2s infinite linear;
		animation: spinRotate 2.2s infinite linear;
	}
	.loading-mask__blur {
		background-color: @container-background;
		z-index: 4;
		clear: both;
		opacity: 0.5;
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
		pointer-events: none;
	}
	.loading-mask__spin-item {
		position: absolute;
		display: block;
		width: 13px;
		height: 13px;
		margin: 4px;
		border-radius: 100%;
		transform-origin: 50% 50%;
		opacity: 0.5;
		-webkit-animation: spinMove 1s infinite linear alternate;
		animation: spinMove 1s infinite linear alternate;
		&:nth-child(1) {
			top: 0;
			left: 0;
		}
		&:nth-child(2) {
			top: 0;
			right: 0;
			-webkit-animation-delay: 0.4s;
			animation-delay: 0.4s;
		}
		&:nth-child(3) {
			right: 0;
			bottom: 0;
			-webkit-animation-delay: 0.8s;
			animation-delay: 0.8s;
		}
		&:nth-child(4) {
			bottom: 0;
			left: 0;
			-webkit-animation-delay: 1.2s;
			animation-delay: 1.2s;
		}
	}
	@-webkit-keyframes spinMove {
		to {
			opacity: 1;
		}
	}
	@keyframes spinMove {
		to {
			opacity: 1;
		}
	}
	@-webkit-keyframes spinRotate {
		to {
			transform: rotate(405deg);
		}
	}
	@keyframes spinRotate {
		to {
			transform: rotate(405deg);
		}
	}
}
body {
	::-webkit-scrollbar-thumb {
		background-color: @border-color-base;
	}

	// 按钮样式
	.ant-btn-default {
		.action-level-100;
		&:focus {
			box-shadow: 0 0 0 2px rgba(@primary-color, 0.2);
		}
	}

	// 按钮样式
	.ant-btn.ant-btn-primary {
		.action-level-250;
	}
	.ant-btn.ant-btn-link:hover {
		border-color: transparent;
	}

	.ant-tabs-nav {
		.ant-tabs-tab-active,
		.ant-tabs-tab:hover {
			color: @primary-color;
		}
		.ant-tabs-ink-bar {
			color: @primary-color;
		}
	}
	.ant-select .ant-select-arrow,
	.ant-select-clear {
		color: @border-color-base;
	}
	.ant-picker .ant-picker-input > input:focus {
		border-color: transparent;
		box-shadow: none;
	}
}
.loading-mask .loading-mask__spin-item {
	background-color: @primary-color;
}
